package com.lb.websocket.controller;

import com.lb.websocket.service.WebSocket;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: liubin
 *
 * @author liubin
 * Date: 2018-04-25
 * Time: 下午 6:17
 */
@Controller
public class IndexController {

    @RequestMapping("/rest/login")
    public String index(){
        return "index";
    }



    @RequestMapping("/aa")
    public String aa(){
        WebSocket.sendMessage("有新的订单");
        return "index";
    }

}
